package com.ithuang.websocket.config;

import com.alibaba.fastjson.JSON;
import org.springframework.stereotype.Component;

@Component
public class JsonUtil {
    public Message jsonMessage(String message){
        Message messageObj = JSON.parseObject(message, Message.class);

return messageObj;
    }
}